package com.cvs.services;

import com.cvs.model.DaysEntity;
import com.cvs.model.EventsEntity;
import com.cvs.model.MandatoryEntity;
import com.cvs.model.UserEntity;


import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyFactory;
import com.googlecode.objectify.ObjectifyService;


public class OfyService {
    static {
    	factory().register(UserEntity.class);
    	factory().register(DaysEntity.class);
    	factory().register(MandatoryEntity.class);
    	factory().register(EventsEntity.class);
    	
    }

    public static Objectify ofy() {
        return ObjectifyService.begin();
    }

    public static ObjectifyFactory factory() {
        return ObjectifyService.factory();
    }
}
